import request from '@/utils/request'
// 部门相关接口
export const reqGetDeptslist = () => {
  return request({
    method: 'get',
    url: '/company/department'
  })
}
// 删除部门接口
export const reqDelDept = (id) => request({
  method: 'delete',
  url: `/company/department/${id}`
})
// 新增部门
export const reqAddDept = (data) => request({
  method: 'post',
  url: '/company/department',
  data
})
// 根据ID查询部门详情
export const reqGetDeptInfoByID = (id) => request({
  method: 'get',
  url: `/company/department/${id}`
})
// 根据ID修改部门详情
export const reqUpdeteDept = (data) => request({
  method: 'put',
  url: `/company/department/${data.id}`,
  data
})
